def fibonacci_sequence(m, n):
    fib_sequence = [1, 1]
    for i in range(2, n):
        next_fib = fib_sequence[-1] + fib_sequence[-2]
        fib_sequence.append(next_fib)
    return fib_sequence[m-1:n]

m = int(input())
n = int(input())
result = fibonacci_sequence(m, n)
for num in result:
    print(num)